import request from '@/utils/request'

// 查询摘牌申请列表
export function listDelist(query) {
  return request({
    url: '/manage/hzjy_delist/list',
    method: 'get',
    params: query
  })
}

// 查询摘牌申请详细
export function getDelist(delistId) {
  return request({
    url: '/manage/hzjy_delist/' + delistId,
    method: 'get'
  })
}

// 新增摘牌申请
export function addDelist(data) {
  return request({
    url: '/manage/hzjy_delist',
    method: 'post',
    data: data
  })
}

// 修改摘牌申请
export function updateDelist(data) {
  return request({
    url: '/manage/hzjy_delist',
    method: 'put',
    data: data
  })
}

// 删除摘牌申请
export function delDelist(delistId) {
  return request({
    url: '/manage/hzjy_delist/' + delistId,
    method: 'delete'
  })
}

// 导出摘牌申请
export function exportDelist(query) {
  return request({
    url: '/manage/hzjy_delist/export',
    method: 'get',
    params: query
  })
}
